home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
g_man
/
cat3
/
standard
/
zfunction.z
/
zfunction
Wrap
Text File
|
1998-10-20
|
5KB
|
133 lines
zzzzffffuuuunnnnccccttttiiiioooonnnn((((3333GGGG)))) zzzzffffuuuunnnnccccttttiiiioooonnnn((((3333GGGG))))
NNNNAAAAMMMMEEEE
zzzzffffuuuunnnnccccttttiiiioooonnnn - specifies the function used for z-buffer comparison by the
current framebuffer
CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
vvvvooooiiiidddd zzzzffffuuuunnnnccccttttiiiioooonnnn((((ffffuuuunnnncccc))))
lllloooonnnngggg ffffuuuunnnncccc;;;;
PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
_f_u_n_c expects one of eight possible flags used when comparing z values.
The available flags are:
ZZZZFFFF____NNNNEEEEVVVVEEEERRRR, the z-buffer function never passes.
ZZZZFFFF____LLLLEEEESSSSSSSS, the z-buffer function passes if the incoming pixel _z
value is less than the _z value stored in the z-buffer bitplanes.
ZZZZFFFF____EEEEQQQQUUUUAAAALLLL, the z-buffer function passes if the incoming pixel _z
value is equal to the _z value stored in the z-buffer bitplanes.
ZZZZFFFF____LLLLEEEEQQQQUUUUAAAALLLL, the z-buffer function passes if the incoming pixel _z
value is less than or equal to the _z value stored in the z-buffer
bitplanes. (This is the default value.)
ZZZZFFFF____GGGGRRRREEEEAAAATTTTEEEERRRR, the z-buffer function passes if the incoming pixel _z
value is greater than the _z value stored in the z-buffer
bitplanes.
ZZZZFFFF____NNNNOOOOTTTTEEEEQQQQUUUUAAAALLLL, the z-buffer function passes if the incoming pixel _z
value is not equal to the _z value stored in the z-buffer
bitplanes.
ZZZZFFFF____GGGGEEEEQQQQUUUUAAAALLLL, the z-buffer function passes if the incoming pixel _z
value is greater than or equal to the _z value stored in the z-
buffer bitplanes.
ZZZZFFFF____AAAALLLLWWWWAAAAYYYYSSSS, the z-buffer function always passes.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
zzzzffffuuuunnnnccccttttiiiioooonnnn specifies the function used to compare each incoming pixel _z
value with the _z value present in the z-buffer bitplanes. For example,
if _f_u_n_c is ZF_LESS and the incoming pixel _z value is less than the _z
value in the z-buffer bitplanes, the comparison passes. Refer to the
zzzzbbbbuuuuffffffffeeeerrrr manual page for an explanation of z-buffer operation in the cases
of z function pass and failure.
A separate zzzzffffuuuunnnnccccttttiiiioooonnnn mode is retained by each of the framebuffers:
normal, popup, overlay, and underlay. The current draw mode determines
which z function value is used, and which is modified by zzzzffffuuuunnnnccccttttiiiioooonnnn.
PPPPaaaaggggeeee 1111
zzzzffffuuuunnnnccccttttiiiioooonnnn((((3333GGGG)))) zzzzffffuuuunnnnccccttttiiiioooonnnn((((3333GGGG))))
SSSSEEEEEEEE AAAALLLLSSSSOOOO
drawmode, zbuffer, zsource
NNNNOOOOTTTTEEEESSSS
Currently z-buffer operation is supported only in the normal framebuffer.
To insure compatibility with future releases of the GL, make calls to
zzzzffffuuuunnnnccccttttiiiioooonnnn only while draw mode is NNNNOOOORRRRMMMMAAAALLLLDDDDRRRRAAAAWWWW.
On the Personal Iris, if you use zzzzffffuuuunnnnccccttttiiiioooonnnn with cccczzzzcccclllleeeeaaaarrrr you can increase
the speed of buffer clearing.
PPPPaaaaggggeeee 2222